//
//  SLShipOwnerVipLevelView.m
//  StarLight
//
//  Created by Duke.wu on 16/5/11.
//  Copyright © 2016年 Duke.Wu. All rights reserved.
//

#import "SLShipOwnerVipLevelView.h"

@interface SLShipOwnerVipLevelView ()

@property (nonatomic, strong) UILabel *levelLabel;

@end


@implementation SLShipOwnerVipLevelView

- (instancetype)init{
  self = [super init];
  if (self) {
    UIImageView *imageView = [UIImageView new];
    imageView.image = [UIImage imageNamed:@"lv"];
    imageView.frame = self.bounds;
    [self addSubview:imageView];
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
      make.center.equalTo(self);
    }];
    
    _levelLabel = [UILabel new];
    _levelLabel.textColor = [UIColor darkGrayColor];
    _levelLabel.text = @"1";
    [self addSubview:_levelLabel];
    [_levelLabel mas_makeConstraints:^(MASConstraintMaker *make) {
      make.center.equalTo(self);
    }];
    
    
    
  }
  return self;
}

- (void)configWithLevel:(NSString *)level{
  self.levelLabel.text = level;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
